#include "file.h"


int num = 50;


void func_1(void)
{
    printf("%d\n" , num);
}
static FILE *file_open(const char *path, const char *mode)
{
    FILE *fp = fopen(path, mode);
    if (NULL == fp)
    {
        printf("文件创建失败\n");
        exit(-1);    // 退出整个程序
    }
    return fp;
}

extern int file_close(FILE **fp)
{
    fclose(*fp);
    *fp = NULL;
}